﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;

namespace AMatysiak.Cryptography
{
    public static class Cryptography
    {
        public static string SHA1(string pass)
        {
            byte[] bytesOfPass = Encoding.Default.GetBytes(pass);
            SHA1 sha1 = SHA1Managed.Create();
            byte[] hash = sha1.ComputeHash(bytesOfPass);
            string hashed = BitConverter.ToString(hash);
            return hashed.Replace("-", "");
        }
    }
}
